﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.ShoppingMall.Shop;

namespace FwProject.Shop.Dto
{
    [AutoMap(typeof(ShopType))]
    public class ShopTypeInput
    {
        /// <summary>
        /// 户级编号
        /// </summary>
        [Display(Name ="上级分类")]
        public Guid? Parentid { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Required(ErrorMessage ="{0}不能为空")]
        [Display(Name ="分类名称")]
        public string TypeName { get; set; }
        /// <summary>
        /// 产品分类id
        /// </summary>
        [Display(Name = "商品类型")]
        public Guid ProductTypeid { get; set; } = Guid.Empty;
        /// <summary>
        /// 是否启用
        /// </summary>
        [Display(Name = "是否启用")]
        public bool Isactive { get; set; } = true;
        /// <summary>
        /// 分类图片
        /// </summary>
        [Display(Name = "分类图片")]
        public string TypeImg { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Required(ErrorMessage ="{0}不能为空")]
        [Display(Name ="排序")]
        public int Orders { get; set; }
    }
}
